﻿// Copyright (c) Inossem. All rights reserved.
// Licensed under the LGPL-3.0 license. See LICENSE file in the project root for full license information.
using DWF.Studio.RemoteCtrls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DWF.Studio.Host
{
    public static class XamlAnalyzerHost
    {
        public static IEnumerable<ValidationInfo> Validate(string workflowFile)
        {
            IEnumerable<ValidationInfo> result = null;
            var loader = RemoteLoaderHost.GetCurrentInstance();
            var xamlAnalyzer = loader?.LoadXamlAnalyzerProxy();
            result = xamlAnalyzer?.Validate(workflowFile);

            return result;
        }
    }
}
